package com.studycloud;

import com.myrule.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

import static com.studyclud.constant.ConstantUrl.PAYMENT_URL;

/**
 * @author JP
 *
 * EnableEurekaClient 该注解在新版可以不用加
 *
 */
@SpringBootApplication
@EnableEurekaClient
@RibbonClient(name = PAYMENT_URL,configuration = MySelfRule.class)
public class OrderMain80
{
    public static void main(String[] args)
    {
        SpringApplication.run(OrderMain80.class,args);
    }
}
